package com.star.test.utils;

import com.star.test.CustomExceptions.ScoreException;

public class JAVA35 {
    public static void checkScores(int score) throws ScoreException {
        if (score < 0 || score > 100) {
            throw new ScoreException("分数不合法");
        }else
            System.out.println(score);
    }
}
